package com.zjitc.dao;

import com.zjitc.model.Cat;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 14:15
 * @description:
 */
public interface CatDao {

  List<Cat> findByCatSpecies(String catSpecies);

  int addCats(List<Cat> cat);


  int chcekSellByCatid(Integer catid);

  Cat findByCatId(Integer catid);

  void changeCatSell(@Param("num") int num, @Param("catid") Integer catid);

  void changeHost(@Param("catid")Integer catid, @Param("username") String username);

  List<Cat> showByUsername(String username);

  int num(String username);

  void removeUsernameAndSell(int id);

  void removeUsername(int id);

  List<Cat> orderList(String username);

  int price(String username);
}
